import http from '@/utils/http';


export const uploadDocuments = (formData: FormData) => {
    return http.post('/bus/documents/upload', formData, {
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    });
  }

export const deleteDocuments = (params?: any) => {
    return http.delete('/bus/documents/'+ params.id);
}


export const downloadDocuments = (id: any) => {
    return http.get('/bus/documents/download/'+ id);
}

export const findAll = (params?: any) => {
    return http.get('/bus/documents',{params});
}


